/**
 * 
 */
package com.ctg.payroll2.service.sysadmin.impl;

import java.sql.SQLException;
import java.util.List;

import com.ctg.payroll2.bean.po.PbSysparmDetail;
import com.ctg.payroll2.bean.po.PbSysparmMaster;
import com.ctg.payroll2.dao.sysadmin.PbSysparmDetailDAO;
import com.ctg.payroll2.service.sysadmin.SystemParametersDetailService;

/**
 * @author 郑致力
 *
 */
public class SystemParametersDetailServiceImpl implements SystemParametersDetailService{
	public void addSysParaMaster(PbSysparmMaster sysparmMaster) {
		// TODO Auto-generated method stub
		
	}


	public void delSysParaMaster(PbSysparmMaster sysparmMaster) {
		// TODO Auto-generated method stub
		
	}


	public List<PbSysparmMaster> getSysParaMaster() throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}


	public List<PbSysparmMaster> getSysParaMaster(int id) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}


	public void updateSysParaMaster(PbSysparmMaster sysparmMaster) {
		// TODO Auto-generated method stub
		
	}
	private PbSysparmDetailDAO pbSysparmDetailDAO;

	
	public PbSysparmDetailDAO getPbSysparmDetailDAO() {
		return pbSysparmDetailDAO;
	}


	public void setPbSysparmDetailDAO(PbSysparmDetailDAO pbSysparmDetailDAO) {
		this.pbSysparmDetailDAO = pbSysparmDetailDAO;
	}


	public List<PbSysparmDetail> getSystemParameters(int id) throws SQLException {
		return pbSysparmDetailDAO.queryForList(".selectByMasterId", id);
	}
	public List<PbSysparmDetail> getSystemParameters(String beanName) throws SQLException {
		return pbSysparmDetailDAO.queryForList(".selectByBeanName", beanName);
	}

}
